﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;


namespace BCEntity.TMS.RedPacket.RedPacket
{
	/// <summary>
	///  红包实体
	/// </summary>
	[Table("RedPacket")]
	public class RedPacketEntity
	{
		[Key]
		[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		/// <summary>
		/// 红包id
		/// </summary>
		public long RedPacketId { get; set; }
		/// <summary>
		/// 红包类型Id
		/// </summary>
		public long RedPacketTypeId { get; set; }
		/// <summary>
		/// 红包类型
		/// </summary>
		public string RedPacketType { get; set; }
		/// <summary>
		/// 红包金额
		/// </summary>
		public decimal RedPacketAmount { get; set; }
		/// <summary>
		/// 获取方式
		/// </summary>
		public string GrundlagenType { get; set; }
		/// <summary>
		/// 红包名称
		/// </summary>
		public string RedPacketName { get; set; }
		/// <summary>
		/// 红包数量
		/// </summary>
		public int RedPackCount { get; set; }
		/// <summary>
		/// 剩余数量
		/// </summary>
		public int RemainCount { get; set; }
		/// <summary>
		/// 领取数量
		/// </summary>
		public int ReceivedCount { get; set; }
		/// <summary>
		/// 代理商id
		/// </summary>
		public long AgentRecordId { get; set; }
		/// <summary>
		/// 可用
		/// </summary>
		public bool Enabled { get; set; }
		/// <summary>
		/// 创建人id
		/// </summary>
		public long CreateAdminId { get; set; }
		/// <summary>
		/// 创建人名称
		/// </summary>
		public string CreateAdminName { get; set; }
		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime CreateTime { get; set; }
		/// <summary>
		/// 修改时间
		/// </summary>
		public DateTime UpdateTime { get; set; }
		/// <summary>
		/// 修改人id
		/// </summary>
		public long? EditAdminId { get; set; }
		/// <summary>
		/// 修改人名称
		/// </summary>
		public string EditAdminName { get; set; }
	}
}